<?php

namespace App\Console\Commands\Tasks\Data;
use Illuminate\Console\Command;

//每15分钟统计一次每日数据
class RealTimeDataStatistics extends Command
{
    //命令名
    protected $signature = 'task:real-time-data-statistics';

    //命令描述
    protected $description = '实时数据统计';

    // 业务处理
    public function handle()
    {
        $today = date('Y-m-d');
        app('repo_data_statistics')->dayDataStatistics($today);
    }
}